#
# Package.
#

package iSOCK::Controller::Admin::Repositories;

#
# Parent.
#

use Moose;
use namespace::autoclean;

BEGIN { extends 'iSOCK::Controller::Root' }

#
# Documentation.
#

=head1 NAME

iSOCK::Controller::Repositories - Repositories Controller for iSOCK

=head1 DESCRIPTION

[enter your description here]

=head1 METHODS

=cut

#
# Subs.
#

sub index :Path :Args(0) {
  my ( $self, $c ) = @_;

  $self->check_user_authorization ( $c, 'can_bofh' );
  
  $c->stash (
    repository_rs         => $c->model ( 'App::Repository'        ),
    repository_content_rs => $c->model ( 'App::RepositoryContent' ),
    repository_type_rs    => $c->model ( 'App::RepositoryType'    ),
  );

  $c->forward ( qw( iSOCK::Controller::Root render_view ) );
}

#
# Documentation.
#

=head1 AUTHOR

Xavier Caron

=head1 LICENSE

This library is free software, you can redistribute it and/or modify
it under the same terms as Perl itself.

=cut

#
# True.
#

1;
